/*********************************************************
          File Name:10.3.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 15 Sep 2015 11:37:06 AM CST
**********************************************************/

#include <iostream>
#include <numeric>
#include <vector>

using std::cout;
using std::endl;
using std::vector;
using std::accumulate;

int main()
{
        vector<int> v{1,2, 3, 4, 5};

        int res = accumulate(v.begin(), v.end(), 0);

        cout << res << endl;

        return 0;
}
